#! /bin/bash

export PS1='[\t] \[\033[01;32m\]\u@\h\[\033[01;34m\] \W \$\[\033[00m\] '
export DATE=$(date +"%Y-%m-%d")
export SVN_EDITOR="vim"
export EDITOR="vim"
export PATH=$PATH:$HOME/bin

export quasvn="svn+ssh://quasar.las/svn/admin/trunk"

# Allow a larger console history
HISTSIZE=3840
HISTFILESIZE=524288
HISTTIMEFORMAT="%F %T "

alias cp='cp -v'
alias mv='mv -v'
alias rm='rm -vi'
alias routetable='netstat -nr'
alias email='pine -i'
alias up='cd ..'
alias sshic='ssh -Cl ra037415 xaveco.lab.ic.unicamp.br'
alias sshfeec='ssh -Cl ra037415 ambar.fee.unicamp.br'
alias sshquasar='ssh -Cl saffi quasar.las.ic.unicamp.br'
alias sshquasarroot='ssh -Cl root quasar.las.ic.unicamp.br'
alias sshargonath='ssh -Cl saffi argonath.las.ic.unicamp.br'
alias sshargonathroot='ssh -Cl root argonath.las.ic.unicamp.br'
alias sshpulsar='ssh -Cl saffi pulsar.itautec.inovasoft.unicamp.br'
alias sshpulsarroot='ssh -Cl root pulsar.itautec.inovasoft.unicamp.br'
alias sshdeathstar='ssh -Cl saffi deathstar.itautec.inovasoft.unicamp.br'
alias sshdeathstarroot='ssh -Cl root deathstar.itautec.inovasoft.unicamp.br'
alias sshbackup='ssh -Cl root backup.las'
alias ssheverest='ssh -Cl saffi everest.las.ic.unicamp.br'
alias ssheverestroot='ssh -Cl root everest.las.ic.unicamp.br'
alias sshmundo='ssh -Cl root mundo'
alias mn='tty ; echo; finger ; echo; w; echo'
alias usage='echo ; echo -en "\a$USER disk usage is of "; du -sh ~; echo;'
alias ls='ls -FG'
alias ll='ls -lh'
alias lla='ll -a'
alias myproc='ps -u $USER'
alias showM='du -h . 2> /dev/null | grep [0-9].[0-9]M | sort'
alias showK='du -h . 2> /dev/null | grep [1-9][0-9][0-9]K | sort'
alias resume='screen -r'
alias stop='screen -d'
alias steal='screen -dr'
alias share='screen -x'
alias list='screen -list'
alias what='echo; echo -e "Available commands:"; echo; echo -e "screen:\tStart new session"; echo -e "resume:\tRe-attach a existent session"; echo -e "stop:\tDetach a session"; echo -e "steal:\tSteals a forgotten session"; echo -e "share:\tShare a common screen session (Multi-Display)"; echo -e "list:\tList avaiable (and already started) sessions"; echo'
alias quasartunnel='ssh -D 5000 -Cl saffi quasar.las.ic.unicamp.br'

alias ether="ifconfig en0"
alias wifi="ifconfig en1"

[[ -f /opt/local/etc/bash_completion ]] && source /opt/local/etc/bash_completion
